<?php include COMMON_PATH.'/index/header.html' ?>
<!--论坛发帖-->

<div class="se-wrap main-content fl-wrap clearfix">
    <div class="fl left-box">
        <div class="title">我的论坛</div>
        <ul class="user-result-wrap">
            <li class="first">
                <img class="avatar" src="<?=$user['avatar']?>"  onerror = "iService.imgNoFind(this)">
                <p><span class="am-icon-venus"></span>&nbsp;<?=$user['nickname']?>&nbsp;<?=$user['section']?></p>
            </li>
            <li class="last">
                <i class="am-icon-file-text"></i><span class="justify" style="font-size: 16px;">我的文章</span>：<b><?=$myPosts['count']?></b>
                <ol>
                    <?php foreach($myPosts['lists'] as$k=>$v):?>
                    <li><a class="btn-font-all" href="/Society/detail?sid=<?=$v['sid']?>"><?=$k+1?>、<?=$v['title']?></a></li>
                    <?php endforeach;?>
                </ol>
            </li>
        </ul>
    </div>
    <div class="fr right-box">
        <div class="title">
            <b class="fl">论坛</b>
            <a class="fr btn-forum-send" href="/Society/send">发帖</a>
            <a class="fr" href="javascript:void(0)">按发布日期排序 <i></i></a>
        </div>
        <ul class="forum-list-wrap">
            <?php foreach($societyLists['lists'] as $v):?>
            <li class="item">
                <div class="forum-title">
                    <b class="title"><?=$v['title']?></b>
                    <span class="author-info fr"><?=$v['createtime']?> 作者：<?=$v['nickname']?></span>
                </div>
                <div class="forum-content clearfix">
                    <?php $images = explode(',',$v['images']);?>
                    <img class="fl forum-pic-cover" src="<?=$images[0]?>" alt="<?=$v['title']?>" onerror = "iService.imgNoFind(this)">
                    <div class="fl forum-font-cover">
                        <p>
                            <span><?=$v['content']?></span>
                            <a class="btn-font-all" href="/Society/detail?sid=<?=$v['sid']?>">&nbsp;阅读原文&nbsp;<i class="layui-icon">&#xe61a;</i></a>
                        </p>
                        <div class="bot">
                            <span class="comment-wrap"><i class="am-icon-commenting-o"></i>&nbsp;&nbsp;<?=$v['comment']?></span>
                        </div>
                    </div>
                </div>
            </li>
            <?php endforeach;?>
        </ul>
        <div id="live-page-wrap" data-page-total="<?=$societyLists['count']?>" data-page-per="<?=PAGE_NUMBER?>"></div>
    </div>
</div>


<?php include COMMON_PATH.'/index/footer.html' ?>
<script>
    navActive(4);
</script>
</html>